﻿<%@ Page Language="C#" MasterPageFile="~/ad/AdminFShop.master" AutoEventWireup="true" CodeFile="EditAdvertise.aspx.cs" Inherits="EditAdvertise" Title="Edit Advertise" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" >
        <tr style="background-color:#3B5998;font-weight:bold;color:White;margin-left:10px">
            <td style="padding: 10px; width:100%; font-family: tahoma; background-color: #808080; color: #FFFFFF; font-size: 20px; text-transform: uppercase; font-weight: normal;" 
                colspan ="3" align="center">
                Thông tin quẢng cáo&nbsp;</td>           
        </tr>
        <tr>
            <td align="right" style="width:26%;height:30px">
                Danh mục :
            </td>
            <td align="left" >
                <asp:DropDownList ID="ddlCategory" runat="server" Width="300px"></asp:DropDownList>&nbsp;
                <%--<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetList_Category"
                    TypeName="FShop.BAL.Category_BAL"></asp:ObjectDataSource>--%>
            </td>
            <td >
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" style="width:26%;height:30px">
                Vị trí :
            </td>
            <td align="left" >
                <asp:DropDownList ID="ddlPosition" runat="server" Width="300px" >
                    
                    <asp:ListItem Value="1" Selected="True">Left side</asp:ListItem>
                  
                    <asp:ListItem Value="2">Right side</asp:ListItem>
                </asp:DropDownList>               
                
            </td>
            <td >
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" style="width:26%;height:30px">
                Tiêu đề quảng cáo : 
            </td>
            <td align="left" >
                <asp:TextBox id="txtAdvName" runat="server" Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtAdvName"
                    ErrorMessage="Bạn cần điền tiêu đề cho quảng cáo"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                WarningIconImageUrl="Images/missValue.png" TargetControlID="RequiredFieldValidator1">
                </ajaxToolkit:ValidatorCalloutExtender>
            </td>
            <td >
            </td>
        </tr>
    <tr>
        <td align="right" style="width: 26%; height: 30px">
            Đường dẫn đến Website :</td>
        <td align="left">
            <asp:TextBox ID="txtAdvWebsite" runat="server" Width="300px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bạn cần điền đường dẫn cho quảng cáo" ControlToValidate="txtAdvWebsite"></asp:RequiredFieldValidator>
            <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server"
            WarningIconImageUrl="Images/missValue.png" TargetControlID="RequiredFieldValidator2">
            </ajaxToolkit:ValidatorCalloutExtender>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td align="right" style="width: 26%; height: 30px">
            Miêu tả :</td>
        <td align="left">
            <asp:TextBox ID="txtAdvDesc" runat="server" Width="300px"></asp:TextBox></td>
        <td>
        </td>
    </tr>
        <tr>
            <td align="right" style="width:26%;height:100px">
                Ảnh quảng cáo : 
            </td>
            <td align="left" >
                <asp:Image ID="imgAdv" runat="server" Height="90px" Width="109px" />
                <br />
                <br />
                <asp:FileUpload ID="FileUpload1" runat="server" Width="155px" /></td>
            <td >
            </td>
        </tr>
        
        <tr>
            <td align="right" style="width:26%;height:30px">
                Ngày bắt đầu : 
            </td>
            <td align="left" >
                <asp:TextBox id="txtAdvStartDate" runat="server" Width="300px"></asp:TextBox>
                <img src="Images/date.png" id="date1"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAdvStartDate"
                    ErrorMessage="Bạn cần điền ngày bắt đầu cho quảng cáo"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
                    TargetControlID="RequiredFieldValidator3" WarningIconImageUrl="Images/missValue.png">
                </ajaxToolkit:ValidatorCalloutExtender>
                <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtAdvStartDate" PopupButtonID="date1">
                </ajaxToolkit:CalendarExtender>
             </td>
            <td >
            </td>
        </tr>
        <tr>
            <td align="right" style="width:26%;height:91px">
                Ngày kết thúc : 
            </td>
            <td align="left" style="height: 91px" >
                <asp:TextBox id="txtEndDate" runat="server" Width="300px"></asp:TextBox>
                <img src="Images/date.png" id="date2" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEndDate"
                    ErrorMessage="Bạn cần điền ngày quảng cáo cho quảng cáo"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server"
                    TargetControlID="RequiredFieldValidator4" WarningIconImageUrl="Images/missValue.png">
                </ajaxToolkit:ValidatorCalloutExtender>
                <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtEndDate" PopupButtonID="date2">
                </ajaxToolkit:CalendarExtender>
            </td>
            <td style="height: 91px" >
            </td>
        </tr>        
        <tr>
            <td align="right" style="width:26%;height:30px">
                Chiều rộng : 
            </td>
            <td align="left" style="height: 30px" >
                <asp:TextBox id="txtWidth" runat="server" Width="39px">0</asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtWidth"
                    ErrorMessage="Chỉ được nhập số" ValidationExpression="[0-9]"></asp:RegularExpressionValidator></td>
            <td style="height: 30px" >
            </td>
        </tr>
    <tr>
        <td align="right" style="width: 26%; height: 30px">
            Chiều cao :</td>
        <td align="left">
            <asp:TextBox ID="txtHeight" runat="server" Width="37px">0</asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtHeight"
                ErrorMessage="Chỉ được nhập số" ValidationExpression="[0-9]"></asp:RegularExpressionValidator></td>
        <td>
        </td>
    </tr>
        <tr>            
            <td style="width:100%;height:30px" colspan="3">
            </td>            
        </tr>        
        <tr>            
            <td align="right" style="width:26%;height:30px">               
            </td>
            <td align="left" colspan="2">
                <input type="button" value="Quay lại" id="btnBack" onclick="javascript:history.back(1);"  />
                <input type="submit" value="Thêm" runat="server" id="btnAdd" onserverclick="btnAdd_Click" style="width: 73px"  onclick="return btnAdd_onclick()" />
                <input type="submit" value="Sửa" runat="server" id="btnEdit" onserverclick="btnEdit_Click" style="width: 73px"  />
                <input type="reset" value="Hủy"   style="width: 73px" />                
            </td>            
        </tr>
    </table>

<script language="javascript" type="text/javascript">
    function ClearForm()
    {
        
    }
    function CheckValidate()
    {        
        return true;      
    }
    function btnAdd_onclick() {

    }

</script>

</asp:Content>


